package com.iot.domain;

import java.time.LocalDateTime;
import java.time.LocalTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wlr
 * @since 2022-01-05
 */
@Repository
public class Light implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName="light";
    /**
     * 光照度
     */
    private Double value;
    /**
     * 设备发送时间
     */
    private LocalDateTime time;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public Light() {
    }

    public Light(String deviceName, Double value, LocalDateTime time) {
        this.deviceName = deviceName;
        this.value = value;
        this.time = time;
    }
}
